package com.cll.learn.stage10.example2;

/**
 * 描述信息:
 * 黄金资源
 * @author CLL
 * @version 1.0
 * @date 2021/5/13 8:22
 */
public class GoldResource {


    /**
     * 开采当前资源需要的人力，相当于物品重量
     */
    private int person;

    /**
     * 当前黄金容量,相当于物品价值
     */
    private int capacity;

    public GoldResource(int person, int capacity) {
        this.person = person;
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return "GoldResource{" +
                "person=" + person +
                ", capacity=" + capacity +
                '}';
    }

    public int getPerson() {
        return person;
    }

    public void setPerson(int person) {
        this.person = person;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

}